public class TextModifier {
	public static void main(String[] args) {
		//TODO: check number of arguments:
		if (args.length < 1) {
			System.out.println("Error: please pass one argument.");
		}
		String str = args[0];
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if (charAtIndex == '+') {
				System.out.print("++");
			} else if (charAtIndex == '-') {
				System.out.print("--");
			} else if (!Character.isDigit(charAtIndex)) {
				System.out.print(charAtIndex);
			}
		}
	}
}